﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;

namespace DailyApp.API.DataModel
{
    /// <summary>
    /// 待办事项的数据模型
    /// </summary>
    [Table("WaitInfo")]
    public class WaitInfo
    {
        /// <summary>
        /// 待办事项ID
        /// </summary>
        [Key]//主键 自增
        public int WaitId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 状态 0-待办，1-已完成
        /// </summary>
        public int Status { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public int? AccountId { get; set; }
    }
}
